{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
$(document).ready(function() {
  $('#Name').focus();
	$(".add").blur(function()
	{
	  if($(".add:last").val() != '' && $(".add:last").val() > 0)
	  {
      $("#one").clone(true).appendTo("#mainDiv")
      .find('input[type="text"]').val('').end()
      .find('select[option=""]').val('');
    }
  });
});
function myFunction()
{
  if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
<form name="party" action="{$smarty.server.PHP_SELF}" method="post">
<table align="center" border="2" cellpadding="2" cellspacing="2" width="" >
<tr>
  <td align="center" class="table1" colspan="10"><b>Setting</b></td>
</tr>
<tr>
  <td class="table2" align="right" colspan="4">Loading Invoice :
    <select>Select
      <option value="1">Rajkot</option>
      <option value="2">Bombay</option>
      <option value="3">Baroda</option>
   </Select>
  </td>
  <td class="table2">&nbsp;</td>
  <td class="table2" align="left" colspan="4">From : <select>Select
      <option value="1">Rajkot</option>
      <option value="2">Bombay</option>
      <option value="3">Baroda</option>
  </Select>
  To : <select>Select
      <option value="1">Rajkot</option>
      <option value="2">Bombay</option>
      <option value="3">Baroda</option>
   </Select></td>
  </td>
</tr>
<tr>
  <td class="table2"  align="right" colspan="3">Truck No :
    <select name="truckNo" id="truckNo" />
      <option value="">Select Truck No</option>
	    {html_options values=$truckDataArray.truckNo output=$truckDataArray.truckNo}
	  </select></td>
  <td class="table2"  align="center" colspan="3">Invoice Date :{html_select_date prefix="issue" start_year ="-0" end_year="+2" field_order="DMY" month_format="%m" day_value_format="%02d"}</td>
  <td class="table2"  align="left" colspan="3">Invoice No :<input type="text" name="InvNo" ></td>
</tr>
<tr>
  <tr colspan="2">
	<td class="table2" align="center" colspan="">LR No</td>
	<td class="table2" align="center" colspan="">LR Date </td>
	<td class="table2" align="center" colspan="">Article/Qty</td>
	<td class="table2" align="center" colspan="">Description</td>
	<td class="table2" align="center" colspan="">Consignor</td>
	<td class="table2" align="center" colspan="">Consignee</td>
	<td class="table2" align="center" colspan="">Weight</td>
	<td class="table2" align="center" colspan="">To Pay/ Paid</td>
	<td class="table2" align="center" colspan="">Remarks</td>
</tr>
<tbody id="mainDiv">
<tr align="center" colspan="2" id="one" id="itemRow">
  <td class="table2" ><input type="text" name="LR no" class="add"></td>
  <td class="table2"NOWRAP >{html_select_date prefix="issue" start_year ="-0" end_year="+2" field_order="DMY" month_format="%m" day_value_format="%02d"}</td>
  <td class="table2" ><input type="text" name="Article/Qty" ></td>
  <td class="table2" ><input type="text" name="Description" ></td>
  <td class="table2" ><input type="text" name="Consignor" ></td>
  <td class="table2" ><input type="text" name="Consignee" ></td>
  <td class="table2" ><input type="text" name="Weight" ></td>
  <td class="table2" ><input type="text" name="Topay/paid" ></td>
  <td class="table2" ><textarea id="" name="Remark" ></textarea></td>
</tr>
</tbody>
<tr>
  <td class="table1" align="center" colspan="9"><input type="submit" name="insertBtn" value="Submit" class="button" /></td>
</tr>
</table>
</form>
{/block}